﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>OrderMangement</title>
    <link href="~/Layui/layui-v2.2.3/layui/css/layui.css" rel="stylesheet" />
    <link href="~/Layui/layui-v2.2.3/layui/css/modules/layer/default/layer.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.10.2.js"></script>
    <script src="~/Layui/layui-v2.2.3/layui/layui.js"></script>
    <script src="~/Layui/layui-v2.2.3/layui/lay/modules/layer.js"></script>
</head>
<body>
    <div> 
    </div>
</body>
   
</html>
<script>
    //注意：parent 是 JS 自带的全局对象，可用于操作父页面
    var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
    if(@ViewBag.alert==1)
    {
        layer.msg('添加成功',{time:1000},function(){
            parent.layer.close(index);
        });
       
    }
    else
    {
        layer.msg('添加失败',{time:1000},function(){
            location.href="/Sprintfuyu/Sell/OrderMangementAdd";
        });
    }
</script>